unit uDZWSNwLink;

interface

uses
  uDZWinSock2, Windows;

const
  IPX_PTYPE = $4000;
  IPX_FILTERPTYPE = $4001;
  IPX_STOPFILTERPTYPE = $4003;
  IPX_DSTYPE = $4002;
  IPX_EXTENDED_ADDRESS = $4004;
  IPX_RECVHDR = $4005;
  IPX_MAXSIZE = $4006;
  IPX_ADDRESS = $4007;
  
type
  _IPX_ADDRESS_DATA = record
    adapternum: Integer; 
    netnum: array[0..3] of UCHAR; 
    nodenum: array[0..5] of UCHAR;
    wan: Boolean; 
    status: Boolean; 
    maxpkt: Integer; 
    linkspeed: ULONG;
  end;
  IPX_ADDRESS_DATA = _IPX_ADDRESS_DATA;
  PIPX_ADDRESS_DATA = ^IPX_ADDRESS_DATA;
  TIpxAddressData = IPX_ADDRESS_DATA;
  PIpxAddressData = PIPX_ADDRESS_DATA;

const
  IPX_GETNETINFO = $4008;

type
  _IPX_NETNUM_DATA = record
    netnum: array[0..3] of UCHAR;
    hopcount: Word; 
    netdelay: Word; 
    cardnum: Integer;
    router: array[0..5] of UCHAR;
  end;
  IPX_NETNUM_DATA = _IPX_NETNUM_DATA;
  PIPX_NETNUM_DATA = ^IPX_NETNUM_DATA;
  TIpxNetNumData = IPX_NETNUM_DATA;
  PIpxNetNumData = PIPX_NETNUM_DATA;

const
  IPX_GETNETINFO_NORIP = $4009;
  IPX_SPXGETCONNECTIONSTATUS = $400B;
  
type
  _IPX_SPXCONNSTATUS_DATA = record
    ConnectionState: UCHAR;
    WatchDogActive: UCHAR;
    LocalConnectionId: Word;
    RemoteConnectionId: Word;
    LocalSequenceNumber: Word;
    LocalAckNumber: Word;
    LocalAllocNumber: Word;
    RemoteAckNumber: Word;
    RemoteAllocNumber: Word;
    LocalSocket: Word;
    ImmediateAddress: array[0..5] of UCHAR;
    RemoteNetwork: array[0..3] of UCHAR;
    RemoteNode: array[0..5] of UCHAR;
    RemoteSocket: Word;
    RetransmissionCount: Word;
    EstimatedRoundTripDelay: Word;
    RetransmittedPackets: Word;
    SuppressedPacket: Word;
  end;
  IPX_SPXCONNSTATUS_DATA = _IPX_SPXCONNSTATUS_DATA;
  PIPX_SPXCONNSTATUS_DATA = ^IPX_SPXCONNSTATUS_DATA;
  TIpxSpcConnStatusData = IPX_SPXCONNSTATUS_DATA;
  PIpxSpcConnStatusData = PIPX_SPXCONNSTATUS_DATA;

const
  IPX_ADDRESS_NOTIFY = $400C;
  IPX_MAX_ADAPTER_NUM = $400D;
  IPX_RERIPNETNUMBER = $400E;
  IPX_RECEIVE_BROADCAST = $400F;
  IPX_IMMEDIATESPXACK = $4010;
  
implementation

end.

